package com.zx.web.dao;

import com.zx.bean.Cart;

import java.util.List;

/**
 * @author 章鑫
 * @version V1.0
 * @Project 2022-09-05
 * @Package com.zx.web.dao
 * @Description:
 * @Date 2022/9/14 16:53
 */
public interface CartDao {
    public Cart findCart(int userId, int goodsid);

    boolean update(Cart cart);

    boolean add(Cart cart);

    List<Cart> findCartByUserId(int userId);

    boolean deleteCart(int userId, int goodsId);

    boolean clearCartById(int userId);
}
